package com.indexingsystem.system.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.indexingsystem.boss.Vo.WebsitesVo;
import com.indexingsystem.boss.admin.mapper.WebsitesMapper;
import com.indexingsystem.boss.entity.Websites;
import com.indexingsystem.system.service.IWebsitesService;

@Service
public class WebsitesServiceImpl implements IWebsitesService{
	
	@Resource
	private WebsitesMapper websitesMapper;

	@Override
	public Websites getWebsites(Integer siteType) {
		return websitesMapper.getWebsites(siteType);
	}

	@Override
	public String getDescription(String id) {
		return websitesMapper.getDescription(id);
	}

	@Override
	public String getAboutUs(String id) {
		return websitesMapper.getAboutUs(id);
	}

	@Override
	public String getContactUs(String id) {
		return websitesMapper.getContactUs(id);
	}
	
	@Override
	public int deleteByPrimaryKey(String id) {
		return websitesMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Websites record) {
		return websitesMapper.insert(record);
	}

	@Override
	public int insertSelective(Websites record) {
		return websitesMapper.insertSelective(record);
	}

	@Override
	public Websites selectByPrimaryKey(String id) {
		return websitesMapper.selectByPrimaryKey(id);
	}

	@Override
	public List<Websites> selectWebsitesList(WebsitesVo record) {
		return websitesMapper.selectWebsitesList(record);
	}

	@Override
	public int updateByPrimaryKeySelective(Websites record) {
		return websitesMapper.updateByPrimaryKeySelective(record);
	}

	/**
	 * 通过web站点类型获取站点配置信息.
	 * 
	 * @param siteType
	 * @return
	 */
	@Override
	public Websites getWebsitesBywebsitesType(int siteType) {
		return websitesMapper.getWebsitesBywebsitesType(siteType);
	}


	@Override
	public int deleteWebsitesByIdBatch(List<String> list) {
		return websitesMapper.deleteWebsitesByIdBatch(list);
	}
}